package com.chao.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ToString
public class Teacher {

    @TableId
    private Integer tId;
    @NotBlank
    private String tName;
    @NotNull
    private Integer tSex;
    @NotNull
    private String tIdNumber;
    private String tAddress;
    private String tPhone;
    private String tEmail;
    private Date tDate;
    private String tPosition;

}
